package fun.eliauk.treedemo.controller;

import fun.eliauk.treedemo.entity.Map;
import fun.eliauk.treedemo.service.MapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xi-zijin
 * @since 2023-12-03
 */
@RestController
@RequestMapping("/treeDemo/map")
public class MapController {

    @Autowired
    private MapService mapService;

    @GetMapping("")
    public Map test(){
        return mapService.getById(5);
    }

}
